package com.example.forum.model;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

@Data
public class Article {
    private Long id;

    private Long boardId;

    @JsonInclude(JsonInclude.Include.ALWAYS)
    private Long userId;

    private String title;

    private Integer visitCount;

    private Integer replyCount;

    private Integer likeCount;

    private Byte state;

    private Byte deleteState;

    private Date createTime;

    private Date updateTime;

    // 是否是作者本人
    @Schema(description = "是否是作者本人")
    private Boolean own;

    private String content;
    // 关联对象作者
    private User user;

    // 关联对象板块
    private Board board;
}